package com.app.model;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 房屋片区街道
 * </p>
 *
 * @author yoominic
 * @since 2025-04-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_fw_area_street")
public class FwAreaStreet implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 级别
     */
    private Integer areaLevel;

    /**
     * 片区名称
     */
    private String name;

    /**
     * 父级id
     */
    private Integer parentId;

    /**
     * 状态  0无效 1有效
     */
    private Integer status;


    private Integer sort;

    /**
     * 创建人id
     */
    private Integer createId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     * 修改人id
     */
    private Integer updateId;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<FwAreaStreet> children;


}
